package com.eshop.modules.mp.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("wechat_menu")
public class WechatMenu implements Serializable
{
    @TableId("`key`")
    private String key;
    private String result;
    @TableField(fill = FieldFill.INSERT)
    private Integer addTime;
    
    public void copy(final WechatMenu source) {
        BeanUtil.copyProperties((Object)source, (Object)this, CopyOptions.create().setIgnoreNullValue(true));
    }
    
    public String getKey() {
        return this.key;
    }
    
    public String getResult() {
        return this.result;
    }
    
    public Integer getAddTime() {
        return this.addTime;
    }
    
    public void setKey(final String key) {
        this.key = key;
    }
    
    public void setResult(final String result) {
        this.result = result;
    }
    
    public void setAddTime(final Integer addTime) {
        this.addTime = addTime;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof WechatMenu)) {
            return false;
        }
        final WechatMenu other = (WechatMenu)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$addTime = this.getAddTime();
        final Object other$addTime = other.getAddTime();
        Label_0065: {
            if (this$addTime == null) {
                if (other$addTime == null) {
                    break Label_0065;
                }
            }
            else if (this$addTime.equals(other$addTime)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$key = this.getKey();
        final Object other$key = other.getKey();
        Label_0102: {
            if (this$key == null) {
                if (other$key == null) {
                    break Label_0102;
                }
            }
            else if (this$key.equals(other$key)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$result = this.getResult();
        final Object other$result = other.getResult();
        if (this$result == null) {
            if (other$result == null) {
                return true;
            }
        }
        else if (this$result.equals(other$result)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof WechatMenu;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $addTime = this.getAddTime();
        result = result * 59 + (($addTime == null) ? 43 : $addTime.hashCode());
        final Object $key = this.getKey();
        result = result * 59 + (($key == null) ? 43 : $key.hashCode());
        final Object $result = this.getResult();
        result = result * 59 + (($result == null) ? 43 : $result.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "WechatMenu(key=" + this.getKey() + ", result=" + this.getResult() + ", addTime=" + this.getAddTime() + ")";
    }
}
